﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package org.aswing.plaf.basic.tree {
    import org.aswing.*;
    import org.aswing.geom.*;
    import org.aswing.plaf.*;
    import org.aswing.graphics.*;
    import org.aswing.tree.*;

    public class BasicExpandControl implements ExpandControl, UIResource {

        public function paintExpandControl(_arg1:Component, _arg2:Graphics2D, _arg3:IntRectangle, _arg4:int, _arg5:TreePath, _arg6:int, _arg7:Boolean, _arg8:Boolean):void{
            var _local13:Array;
            if (_arg8){
                return;
            };
            var _local9:int = _arg4;
            var _local10:Number = (_arg3.x - (_local9 / 2));
            var _local11:Number = (_arg3.y + (_arg3.height / 2));
            var _local12:Number = 4;
            if (!_arg7){
                _local10 = (_local10 - 2);
                _local13 = [new IntPoint(_local10, (_local11 - _local12)), new IntPoint(_local10, (_local11 + _local12)), new IntPoint((_local10 + _local12), _local11)];
            } else {
                _local11 = (_local11 - 2);
                _local13 = [new IntPoint((_local10 - _local12), _local11), new IntPoint((_local10 + _local12), _local11), new IntPoint(_local10, (_local11 + _local12))];
            };
            _arg2.fillPolygon(new SolidBrush(ASColor.BLACK), _local13);
        }

    }
}//package org.aswing.plaf.basic.tree 
